﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>收录系统-集群管理</title>
    <meta charset="utf-8">
    <script src="http://static.qiyi.com/qui/0.8.0/js/qui.js"></script>
    <script charset="utf-8" type="text/javascript" src="js/qui_0.8.0/jquery.qui.suggest.js?v=2014122229711"></script>
    <link rel="stylesheet" href="http://static.qiyi.com/qui/0.8.0/css/themes/lego/theme.css">
    <link rel="stylesheet" href="./css/copyLego.css">
    <script type="text/javascript">
        document.write('<scri' + 'pt src="./js/record_server.js?v=1" charset="utf-8" type="text/javascript"></s' + 'cript>');
    </script>
</head>
<style>

    h6 {
        padding: 7px;
    }

    .nav-tabs > .active > a, .nav-tabs > .active > a:hover, .nav-tabs > .active > a:focus {
        border-top: 1px solid #ccc;
    }

    .channelSuggestDiv .ui-suggest .ui-autocomplete {
        width: 800px !important;
    }

    .btn.btn-huge {
        width: 200px;
        font-size: 18px;
    }

    .invalid-msg{
        color: red;
    }
    .invalid-field{
        border-color: red;
    }
    .flag{
        color: red;
    }

    .qui-tip .qui-tip-inner {z-index: 1999;min-width: 150px;text-align: center}

</style>
<body class="skin-lego">
<header class="main-header">

</header>
<div class="main-wrapper">
    <div class="main-content" id="j-pjax-container">
        <div class="content-wrapper">
            <section class="content-header">
                <ol class="breadcrumb">
                    <li>收录系统</li>
                    <li class="active">集群管理</li>
                    <li class="active">集群编辑</li>
                </ol>
            </section>
            <section class="content">
                <form class="form-horizontal video-edit-form" method="post" name="basicFrm">
                    <div class="form-container j-form-components" >

                        <div class="container-fluid">
                            <div class="form-group control-group" >
                                <label class="col-xs-2 control-label"><span class="form-must">*</span>服务器集群名称 </label>
                                <div class="col-xs-4 controls">
                                    <input type="hidden" id="id" name="id"  value="" style="width:250px;" />
                                    <input type="text" name="name"  value="" class="form-control" style="width:250px;"/>
                                    &nbsp;&nbsp;&nbsp;
                                    <span style="display: none" id="flag" color="red">集群名已存在</span>
                                </div>
                            </div>

                            <div class="form-group control-group" >
                                <label class="col-xs-2 control-label"><span class="form-must">*</span>服务器集群状态 </label>
                                <div class="col-xs-4 controls">
                                    <select class="form-control" name="status"  style="width: 300px">
                                        <option value="1">上线</option>
                                        <option value="0">下线</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group control-group" >
                                <label class="col-xs-2 control-label"><span class="form-must">*</span>机房 </label>
                                <div class="col-xs-4 controls">
                                    <select class="form-control" name="idc" style="width: 300px">
                                        <option value="-- -- -- --">-- -- -- --</option>
                                        <option value="pps_shanghai_office">pps_shanghai_office</option>
                                        <option value="shanghai6_ct">shanghai6_ct</option>
                                        <option value="shanghai12_ct">shanghai12_ct</option>
                                        <option value="beijing_office">beijing_office</option>
                                        <option value="beijing2_cnc">beijing2_cnc</option>
                                        <option value="beijing5_cnc">beijing5_cnc</option>
                                        <option value="beijing7_ct">beijing7_ct</option>
                                        <option value="beijing9_dxt">beijing9_dxt</option>
                                        <option value="beijing11_ct">beijing11_ct</option>
                                        <option value="beijing2_21vianet">beijing2_21vianet</option>
                                        <option value="chongqing_office">chongqing_office</option>
                                        <option value="chongqing_ct">chongqing_ct</option>
                                        <option value="chongqing6_cnc">chongqing6_cnc</option>
                                        <option value="taibei_other">taibei_other</option>
                                        <option value="taibei_office">taibei_office</option>
                                        <option value="wuhan4_ct">wuhan4_ct</option>
                                        <option value="hongkong2_equinix">hongkong2_equinix</option>
                                        <option value="hefei_fengantongwei">hefei_fengantongwei</option>
                                        <option value="foshan_fengantongwei">foshan_fengantongwei</option>
                                        <option value="nanning_fengantongwei">nanning_fengantongwei</option>
                                        <option value="guangzhou_fengantongwei">guangzhou_fengantongwei</option>
                                        <option value="zhengzhou_fengantongwei">zhengzhou_fengantongwei</option>
                                        <option value="haerbin_fengantongwei">haerbin_fengantongwei</option>
                                        <option value="changsha_fengantongwei">changsha_fengantongwei</option>
                                        <option value="nanjing_fengantongwei">nanjing_fengantongwei</option>
                                        <option value="yichun_fengantongwei">yichun_fengantongwei</option>
                                        <option value="shenyang_fengantongwei">shenyang_fengantongwei</option>
                                        <option value="jinan_fengantongwei">jinan_fengantongwei</option>
                                        <option value="wuhan_fengantongwei">wuhan_fengantongwei</option>
                                        <option value="xianyang_fengantongwei">xianyang_fengantongwei</option>
                                        <option value="shenzhen_fengantongwei">shenzhen_fengantongwei</option>
                                        <option value="chengdu_fengantongwei">chengdu_fengantongwei</option>
                                        <option value="hangzhou_fengantongwei">hangzhou_fengantongwei</option>
                                        <option value="kunming_fengantongwei">kunming_fengantongwei</option>
                                        <option value="taiyuan_fengantongwei">taiyuan_fengantongwei</option>
                                        <option value="guiyang_fengantongwei">guiyang_fengantongwei</option>
                                        <option value="tianjin_fengantongwei">tianjin_fengantongwei</option>
                                        <option value="xiamen_fengantongwei">xiamen_fengantongwei</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group control-group" >
                                <label class="col-xs-2 control-label"><span class="form-must">*</span>服务器</label>
                                <div class="col-xs-4 controls">
                                    <table class="grid" id="IdcServerListGrid"></table>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="module-container">
                        <div class="container-fluid">
                            <div class="form-group">
                                <div class="col-xs-10 col-xs-offset-2">
                                    <button id="Submit" type="button" class="btn btn-primary btn-huge">提交</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </section>
        </div>
    </div>
</div>


<script type="text/javascript">
    require(['record_server', 'qui/vendors/spark-md5/js/spark-md5'], function () {
        //为了加载 jquery.validate,临时处理
        qrequire([], function () {
            Ancestor.Auth.getAuthData({ url: "/epg/cluster_home.html"}, function (rdata) {
                Server.Action.editClusterBaseRun();
            })
        })
    })
</script>
</div>
</body>
<html>
